<style>
.close_newuser_ins {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 26px;
    top: 26px;
	cursor:pointer;
}
.auction-item.auction-item-home{
	width:222px;
}
.auction-item.auction-item-home{
	border:solid 2px #ccc;
}
.region.region-auction-shelf .auction-shelf-header .auction-shelf-title{
	font-weight:bold;
}
.auction-item.auction-item-home .auction-last-time{
	max-width:114px;
}
</style>
<?php 
    if (!$closeNewuserIns){
?>
<div class="region  newuser_ins" style="position:relative;">
    <div class="close_newuser_ins"></div>
    <a href="/Index/Howitworks"><img alt="" src="<?php echo Yii::app()->resource->path('img')?>/howitworks.jpg"></a>
</div>
<script type="text/javascript">
	$(".close_newuser_ins").on("click",function(){
		<?php 
		      if (!Yii::app()->user->isGuest){
		?>
		$.ajax({
			url:"<?php echo Yii::app()->baseUrl."/ajax/closenewins"?>",
			type:"GET",
		    dataType:"json",
		    data:{"close":true},
		    success:function(data){
			    console.log(data);
				if(data.hasOwnProperty("result") && data.result){
					$(".newuser_ins").hide();	
				}
			}
		});
		<?php }else{?>
			$(".newuser_ins").hide();
		<?php }?>
	})
</script>
<?php }?>
<div class="region region-auction-shelf shelf-home">
    <div class="auction-shelf-header">
        <h2 class="auction-shelf-title">Featured Auctions</h2>
    </div>
    <div class="auction-shelf-content">
    <?php  
        $this->widget('application.components.widgets.CAuctionsPool',array(
            'id'            => 'featured-auction',
            'dataProvider'  => $featureModel,
            'template'      => '{items}',
            'itemView'      => 'application.components.widgets.auctionPool.item._CAuctionItemHome'
        ))
	?>
    </div>
    <div class="auction-shelf-footer helper-float-body">
        <a href="<?php echo Yii::app()->baseUrl.'/c-status-feature'?>" class="helper-float-right" style="color: #e41e28">All Featured Auctions</a>
    </div>
</div>
<div class="region region-auction-shelf shelf-home">
    <div class="auction-shelf-header">
        <h2 class="auction-shelf-title">Live Auctions</h2>
    </div>
    <div class="auction-shelf-content">
    <?php  
        $this->widget('application.components.widgets.CAuctionsPool',array(
            'id'            => 'live-auction',
            'dataProvider'  => $liveModel,
            'template'      => '{items}',
            'itemView'      => 'application.components.widgets.auctionPool.item._CAuctionItemHome'
        ))
	?>
    </div>
    <div class="auction-shelf-footer helper-float-body">
        <a  href="<?php echo Yii::app()->baseUrl.'/c-status-live'?>" class="helper-float-right" style="color: #e41e28">All Live Auctions</a>
    </div>
</div>

<script>
        
</script>
<style>
    .auction-item.auction-item-home .auction-image-box {
        height: 168px;
        margin-right: 10px;
        display: table-cell;
        vertical-align: middle;
    }        
</style>